require "Cocos2d"
--require "src/scene/SceneMgr"
--require "gl/CommonConst"


local LoadingScene = class("LoadingScene", function()
    return cc.Scene:create()
end)
function LoadingScene:ctor()
    self.m_Loadinglayer = nil
end

function LoadingScene:create()
    local scene = LoadingScene.new()
    scene:loadSingletonObj()
    scene:initScene()
    return scene
end

function LoadingScene:loadSingletonObj()
    require "gl/Audio"
    require "gl/CommonConst"
    require "gl/CommonFunc"
    require "gl/Cmd"
    require "gl/Struct" 
    require "gl/Network" 
    require "tools/object"
    require "tools/event"
    require "src/scene/SceneMgr"
    require "ds/DataSetMgr" 
    require "widget/WaitingBox"
    require "language/zh/localstr"  
 
    ds.DataSetMgr:getInstance():init()

end

function LoadingScene:initScene()
    self.m_Loadinglayer = require("view/Load/LoadingLayer"):create()
    self:addChild(self.m_Loadinglayer)
end

return LoadingScene